package com.sy.controller;

import com.sy.bean.JwtOperation;
import com.sy.dto.JsonResult;
import com.sy.service.Impl.PermissionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zbbstart
 * @date 2021/1/30 - 23:53
 */
@RestController
@RequestMapping("roles")
public class RoleController {
    @Autowired
    private JwtOperation jwtOperation;
    @Autowired
    private PermissionServiceImpl permissionService;

    @GetMapping
    public JsonResult getPermissionList(){
        return permissionService.getPermissionList();
    }
}
